import axios from "../utils/my_axios";

const systemApi = {
    jueseList : '/boss/pms/admin/listByPage',
    jueseInfo : '/boss/pms/role/get',
    addJuese : '/boss/pms/role/add',
    updataJuese : '/boss/pms/role/update',
    deleteJuese : '/boss/pms/role/delete',
    changeStatus : '/boss/pms/admin/updateStatus',
};

export function jueseList(parameter){
    return axios({
        url: systemApi.jueseList,
        method: "get",
        auth: parameter,
    });
}

export function jueseInfo(parameter){
    return axios({
        url: systemApi.jueseInfo,
        method: "get",
        params: parameter,
    });
}

export function addJuese(parameter){
    return axios({
        url: systemApi.addJuese,
        method: "get",
        params: parameter,
    });
}

export function updataJuese(parameter){
    return axios({
        url: systemApi.updataJuese,
        method: "get",
        params: parameter,
    });
}

export function deleteJuese(parameter){
    return axios({
        url: systemApi.deleteJuese,
        method: "get",
        params: parameter,
    });
}

export function changeStatus(parameter){
    return axios({
        url: systemApi.changeStatus,
        method: "get",
        params: parameter,
    });
}